package suanfa;

/**
 * @Author Stringzhua
 * @Date 2024/2/2 19:17
 * description:
 */
public class TwoDimensionalArray03 {
    public static void main(String[] args) {
        //int arr[][]=new int[2][3]
        int arr[][];//声明二维数组
        arr = new int[2][3];//再开空间
        arr[1][1]=8;
        //遍历arr数组
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.print(arr[i][j]+" ");
            }
            System.out.println();//换行
        }
    }
}
